<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>导航栏</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }
        .nav{
            height: 41px;
            background: #fcfcfc;
            border-top: 3px solid #ff8500;
            border-bottom: 1px solid #edeef0;
        }
        .nav a {
            /* 转换为行内块 */
            display: inline-block;
            height: 41px;
            /* 字数不一样的不方便给宽度 可以设置padding值 把盒子撑开 */
            padding: 0 20px;
            /* 垂直居中 */
            line-height: 41px;
            color: #4c4c4c;
            text-decoration: none;
            font-size: 12px;
        }

        .nav a:hover{
            background-color: #eeeeee;
        }
    </style>
</head>
<body>
    <div class="nav">
        <a href="#">设为首页</a>
        <a href="#">手机新浪网</a>
        <a href="#">移动客户端</a>
        <a href="#">博客</a>
        <a href="#">微博</a>
        <a href="#">关注我</a></a>
    </div>
</body>
</html>